<html>
<head><meta charset="utf-8"><title>preserving temp files after run-make test? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/preserving.20temp.20files.20after.20run-make.20test.3F.html">preserving temp files after run-make test?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="232844525"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/preserving%20temp%20files%20after%20run-make%20test%3F/near/232844525" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Richard Cobbe <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/preserving.20temp.20files.20after.20run-make.20test.3F.html#232844525">(Apr 02 2021 at 00:29)</a>:</h4>
<p>I'm working on <a href="https://github.com/rust-lang/rust/issues/58713">https://github.com/rust-lang/rust/issues/58713</a> and I've gotten to the point where I have enough functionality working that I'm starting to write tests for it.  I'm using a run-make test, and I'm getting unexpected results from the test: it compiles and links successfully, but it produces unexpected output.  I'd like to inspect the resulting .exe file (I'm on Windows), but the test harness deletes it on exit.  Is there a flag I can pass to <code>x.py test</code> to ask the test system to leave the temporary directory intact?</p>
<p><em>EDIT:</em> never mind (sheepishly).  The problem isn't that the temp directory was getting deleted; I was looking for it in the wrong place.  Sorry for the noise!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>